// const DEFAULT_DB_NAME = "USER_DATA";

// const DEFAULT_INIT_PARAMS = {
//   storeName: 
// }

// class DataBase {
//   private db: IDBDatabase;

//   constructor(private dbName = DEFAULT_DB_NAME, version?, initParams?) {
//     if (!window.indexedDB) {
//       throw new Error("The agent is not support IndexedDB!");
//     }

//     let req: IDBOpenDBRequest = indexedDB.open(this.dbName, version);
//     req.onsuccess = e => this.db = (<IDBRequest>e.target).result;
//     req.onupgradeneeded = e => {
//       this.db = (<IDBRequest>e.target).result;
//       this.db.
//     };

//   }
// }


export const DB_NAME = "CaimiDB";
export const DB_ARTICLE_STORE_NAME = "Articles";